package yushuman.rbac.domain.entity;

import java.time.LocalDateTime;

/**
 * 实体类-用户
 * @author 俞舒熳
 * @since 2025/6/3 14:29
 */
public class User extends BaseEntity {

    /**
     * ⽤户名
     */
    public String username;
    /**
     * 真实姓名
     */
    public String name;
    /**
     * 电话
     */
    public String mobile;
    /**
     * 邮箱
     */
    public String email;
    /**
     * 所属的部门ID
     */
    public Integer deptId;

    /**
     * 具有的角色ID
     */
    public Integer roleId;

    /**
     * 状态：启⽤|停⽤
     */
    public boolean enabled = true;

    public User() {
    }

    public User(Integer id, LocalDateTime createAt, LocalDateTime updateAt, String username, String name,
                String mobile, String email, Integer deptId, Integer roleId) {
        super(id, createAt, updateAt);
        this.username = username;
        this.name = name;
        this.mobile = mobile;
        this.email = email;
        this.deptId = deptId;
        this.roleId = roleId;
    }
}
